package com.ys.peony.base.contract;

import com.ys.peony.base.BaseContract;

/**
 * Created by 59153 on 2017/7/27.
 */

public class LoginContract extends BaseContract{

    public interface iLoginView extends BaseContract.IBaseView{
        void onLoginResult(int code);

    }
    public interface ILoginPresenter extends BaseContract.IBasePresenter {
        public void onSuccess(String result);
        public void onFail(String msg);
        public boolean checkCurUserValid();
    }

    public interface ILoginModel extends  BaseContract.IBaseModel {
        void toLogin(String userName, String pwd,  ILoginPresenter iLoginPresenter);
    }
}
